package com.example.helloworld.kl

class Phone {
    lateinit var brand: String
    var model: String = ""
    var color: String =""

    constructor()
    constructor(brand: String) {
        this.brand = brand
    }

    constructor(brand: String, model: String) : this(brand) {
        this.model = model
    }

    fun printInfo() {
    println("品牌:${brand}")
    println("型号:${model}")
    println("颜色:${color}")
    println("品牌:${brand}")
    }

    fun call(name: String) {
        println("用$brand $model 手机给$name 打电话")
    }
}